﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

public class UI_HomePanel : MonoBehaviour
{
    public Button Btn_Go2Interior;
    // Start is called before the first frame update


    public void Awake()
    {
        // Btn_Go2Interior = GetComponentInChildren<Button>();
        if (Btn_Go2Interior != null)
        {
            Btn_Go2Interior.onClick.AddListener(OnButtonClicked);
        }
    }
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        
    }

    public void OnButtonClicked()
    {
        GlobalEvent.DispatchEvent(EventName.LocationSelect, new Event_LocationSelect() { LocationID = 1 });
    }
}
